{php $diyitem['data'] = empty($diyitem['params']['datatype'])?$banner:$diyitem['data']}
{if !empty($diyitem['data'])}
<div class='fui-swipe'>
    <div class='fui-swipe-wrapper'>
        {if !empty($diyitem['params']['datatype'])}
            {loop $diyitem['data'] $banneritem}
                <a class='fui-swipe-item' href="{$banneritem['linkurl']}" data-nocache="true"><img src="{php echo tomedia($banneritem['imgurl'])}" style="display: block; width: 100%; height: auto;"/></a>
            {/loop}
        {else}
            {loop $banner $k $v}
                <a class='fui-swipe-item' href="javascript:;" data-nocache="true"><img src="{php echo urldecode(tomedia($v));}" style="display: block; width: 100%; height: auto;"/></a>
            {/loop}
        {/if}
    </div>
    <style>
        .fui-swipe-page .fui-swipe-bullet {background: {$diyitem['style']['background']}; opacity: {$diyitem['style']['opacity']};}
        .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
    </style>
    <div class="fui-swipe-page {$diyitem['style']['dotalign']} {$diyitem['style']['dotstyle']}" style="padding: 0 {$diyitem['style']['leftright']}px; bottom: {$diyitem['style']['bottom']}px; "></div>
</div>
{/if}